﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UCLHJiHuanZYJHXX.ascx.cs" Inherits="Web.Controls.LAIHAN.UCLHJiHuanZYJHXX" %>
<%@ Register Assembly="DevExpress.Web.v15.2, Version=15.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>

<script type="text/javascript">

    function ChangeJH(s, type) {
        var JiaYuanJH, YiYuanJH, JiaXianJH, YiXianJH, ZhuanYiJH;

        SetFocus(type);
        switch (type) {
            case 1:
                JiaYuanJH = parseInt(UCLHJiHuanZYJHXX_YuanJiHJ1.GetText());

                YiYuanJH = parseInt(UCLHJiHuanZYJHXX_YuanJiHY1.GetText());
                ZhuanYiJH = parseInt(s.GetText());
                if (isNaN(JiaYuanJH) || isNaN(YiYuanJH) || isNaN(ZhuanYiJH)) {

                    return;
                }
                if (ZhuanYiJH > JiaYuanJH) {
                    alert("转移计划不能大于转出原计划");
                    return;
                }
                JiaXianJH = JiaYuanJH - ZhuanYiJH;
                YiXianJH = YiYuanJH + ZhuanYiJH;

                UCLHJiHuanZYJHXX_XianJiHJ1.SetText(JiaXianJH);
                UCLHJiHuanZYJHXX_XianJiHY1.SetText(YiXianJH);

                break;
            case 2:
                JiaYuanJH = parseInt(UCLHJiHuanZYJHXX_YuanJiHJ2.GetText());

                YiYuanJH = parseInt(UCLHJiHuanZYJHXX_YuanJiHY2.GetText());
                ZhuanYiJH = parseInt(s.GetText());
                if (isNaN(JiaYuanJH) || isNaN(YiYuanJH) || isNaN(ZhuanYiJH)) {

                    return;
                }
                if (ZhuanYiJH > JiaYuanJH) {
                    alert("转移计划不能大于转出原计划");
                    return;
                }
                JiaXianJH = JiaYuanJH - ZhuanYiJH;
                YiXianJH = YiYuanJH + ZhuanYiJH;

                UCLHJiHuanZYJHXX_XianJiHJ2.SetText(JiaXianJH);
                UCLHJiHuanZYJHXX_XianJiHY2.SetText(YiXianJH);

                break;
            case 3:
                JiaYuanJH = parseInt(UCLHJiHuanZYJHXX_YuanJiHJ3.GetText());

                YiYuanJH = parseInt(UCLHJiHuanZYJHXX_YuanJiHY3.GetText());
                ZhuanYiJH = parseInt(s.GetText());
                if (isNaN(JiaYuanJH) || isNaN(YiYuanJH) || isNaN(ZhuanYiJH)) {

                    return;
                }
                if (ZhuanYiJH > JiaYuanJH) {
                    alert("转移计划不能大于转出原计划");

                    return;
                }
                JiaXianJH = JiaYuanJH - ZhuanYiJH;
                YiXianJH = YiYuanJH + ZhuanYiJH;

                UCLHJiHuanZYJHXX_XianJiHJ3.SetText(JiaXianJH);
                UCLHJiHuanZYJHXX_XianJiHY3.SetText(YiXianJH);

                break;
            case 4:
                JiaYuanJH = parseInt(UCLHJiHuanZYJHXX_YuanJiHJ4.GetText());

                YiYuanJH = parseInt(UCLHJiHuanZYJHXX_YuanJiHY4.GetText());
                ZhuanYiJH = parseInt(s.GetText());
                if (isNaN(JiaYuanJH) || isNaN(YiYuanJH) || isNaN(ZhuanYiJH)) {

                    return;
                }
                if (ZhuanYiJH > JiaYuanJH) {
                    alert("转移计划不能大于转出原计划");
                    return;
                }
                JiaXianJH = JiaYuanJH - ZhuanYiJH;
                YiXianJH = YiYuanJH + ZhuanYiJH;

                UCLHJiHuanZYJHXX_XianJiHJ4.SetText(JiaXianJH);
                UCLHJiHuanZYJHXX_XianJiHY4.SetText(YiXianJH);

                break;
            case 5:
                JiaYuanJH = parseInt(UCLHJiHuanZYJHXX_YuanJiHJ5.GetText());

                YiYuanJH = parseInt(UCLHJiHuanZYJHXX_YuanJiHY5.GetText());
                ZhuanYiJH = parseInt(s.GetText());
                if (isNaN(JiaYuanJH) || isNaN(YiYuanJH) || isNaN(ZhuanYiJH)) {

                    return;
                }
                if (ZhuanYiJH > JiaYuanJH) {
                    alert("转移计划不能大于转出原计划"); return;
                    return;
                }
                JiaXianJH = JiaYuanJH - ZhuanYiJH;
                YiXianJH = YiYuanJH + ZhuanYiJH;

                UCLHJiHuanZYJHXX_XianJiHJ5.SetText(JiaXianJH);
                UCLHJiHuanZYJHXX_XianJiHY5.SetText(YiXianJH);

                break;
            case 6:
                JiaYuanJH = parseInt(UCLHJiHuanZYJHXX_YuanJiHJ6.GetText());

                YiYuanJH = parseInt(UCLHJiHuanZYJHXX_YuanJiHY6.GetText());
                ZhuanYiJH = parseInt(s.GetText());
                if (isNaN(JiaYuanJH) || isNaN(YiYuanJH) || isNaN(ZhuanYiJH)) {

                    return;
                }
                if (ZhuanYiJH > JiaYuanJH) {
                    alert("转移计划不能大于转出原计划"); return;
                }
                JiaXianJH = JiaYuanJH - ZhuanYiJH;
                YiXianJH = YiYuanJH + ZhuanYiJH;

                UCLHJiHuanZYJHXX_XianJiHJ6.SetText(JiaXianJH);
                UCLHJiHuanZYJHXX_XianJiHY6.SetText(YiXianJH);

                break;
            case 7:
                JiaYuanJH = parseInt(UCLHJiHuanZYJHXX_YuanJiHJ7.GetText());

                YiYuanJH = parseInt(UCLHJiHuanZYJHXX_YuanJiHY7.GetText());
                ZhuanYiJH = parseInt(s.GetText());
                if (isNaN(JiaYuanJH) || isNaN(YiYuanJH) || isNaN(ZhuanYiJH)) {

                    return;
                }
                if (ZhuanYiJH > JiaYuanJH) {
                    alert("转移计划不能大于转出原计划"); return;
                }
                JiaXianJH = JiaYuanJH - ZhuanYiJH;
                YiXianJH = YiYuanJH + ZhuanYiJH;

                UCLHJiHuanZYJHXX_XianJiHJ7.SetText(JiaXianJH);
                UCLHJiHuanZYJHXX_XianJiHY7.SetText(YiXianJH);

                break;
            case 8:
                JiaYuanJH = parseInt(UCLHJiHuanZYJHXX_YuanJiHJ8.GetText());

                YiYuanJH = parseInt(UCLHJiHuanZYJHXX_YuanJiHY8.GetText());
                ZhuanYiJH = parseInt(s.GetText());
                if (isNaN(JiaYuanJH) || isNaN(YiYuanJH) || isNaN(ZhuanYiJH)) {

                    return;
                }
                if (ZhuanYiJH > JiaYuanJH) {
                    alert("转移计划不能大于转出原计划"); return;
                }
                JiaXianJH = JiaYuanJH - ZhuanYiJH;
                YiXianJH = YiYuanJH + ZhuanYiJH;

                UCLHJiHuanZYJHXX_XianJiHJ8.SetText(JiaXianJH);
                UCLHJiHuanZYJHXX_XianJiHY8.SetText(YiXianJH);

                break;
            case 9:
                JiaYuanJH = parseInt(UCLHJiHuanZYJHXX_YuanJiHJ9.GetText());

                YiYuanJH = parseInt(UCLHJiHuanZYJHXX_YuanJiHY9.GetText());
                ZhuanYiJH = parseInt(s.GetText());
                if (isNaN(JiaYuanJH) || isNaN(YiYuanJH) || isNaN(ZhuanYiJH)) {

                    return;
                }
                if (ZhuanYiJH > JiaYuanJH) {
                    alert("转移计划不能大于转出原计划"); return;
                }
                JiaXianJH = JiaYuanJH - ZhuanYiJH;
                YiXianJH = YiYuanJH + ZhuanYiJH;

                UCLHJiHuanZYJHXX_XianJiHJ9.SetText(JiaXianJH);
                UCLHJiHuanZYJHXX_XianJiHY9.SetText(YiXianJH);

                break;
            case 10:
                JiaYuanJH = parseInt(UCLHJiHuanZYJHXX_YuanJiHJ10.GetText());

                YiYuanJH = parseInt(UCLHJiHuanZYJHXX_YuanJiHY10.GetText());
                ZhuanYiJH = parseInt(s.GetText());
                if (isNaN(JiaYuanJH) || isNaN(YiYuanJH) || isNaN(ZhuanYiJH)) {

                    return;
                }
                if (ZhuanYiJH > JiaYuanJH) {
                    alert("转移计划不能大于转出原计划"); return;
                }
                JiaXianJH = JiaYuanJH - ZhuanYiJH;
                YiXianJH = YiYuanJH + ZhuanYiJH;

                UCLHJiHuanZYJHXX_XianJiHJ10.SetText(JiaXianJH);
                UCLHJiHuanZYJHXX_XianJiHY10.SetText(YiXianJH);

                break;
            case 11:
                JiaYuanJH = parseInt(UCLHJiHuanZYJHXX_YuanJiHJ11.GetText());

                YiYuanJH = parseInt(UCLHJiHuanZYJHXX_YuanJiHY11.GetText());
                ZhuanYiJH = parseInt(s.GetText());
                if (isNaN(JiaYuanJH) || isNaN(YiYuanJH) || isNaN(ZhuanYiJH)) {

                    return;
                }
                if (ZhuanYiJH > JiaYuanJH) {
                    alert("转移计划不能大于转出原计划"); return;
                }
                JiaXianJH = JiaYuanJH - ZhuanYiJH;
                YiXianJH = YiYuanJH + ZhuanYiJH;

                UCLHJiHuanZYJHXX_XianJiHJ11.SetText(JiaXianJH);
                UCLHJiHuanZYJHXX_XianJiHY11.SetText(YiXianJH);

                break;
            case 12:
                JiaYuanJH = parseInt(UCLHJiHuanZYJHXX_YuanJiHJ12.GetText());

                YiYuanJH = parseInt(UCLHJiHuanZYJHXX_YuanJiHY12.GetText());
                ZhuanYiJH = parseInt(s.GetText());
                if (isNaN(JiaYuanJH) || isNaN(YiYuanJH) || isNaN(ZhuanYiJH)) {

                    return;
                }
                if (ZhuanYiJH > JiaYuanJH) {
                    alert("转移计划不能大于转出原计划"); return;
                }
                JiaXianJH = JiaYuanJH - ZhuanYiJH;
                YiXianJH = YiYuanJH + ZhuanYiJH;

                UCLHJiHuanZYJHXX_XianJiHJ12.SetText(JiaXianJH);
                UCLHJiHuanZYJHXX_XianJiHY12.SetText(YiXianJH);

                break;
        }
        if (JiaYuanJH <= 0) {
            return;
        }
        SetValueZhuanYiJH(parseInt(s.GetText()));
        GetTotal();
    }
    function SetValueZhuanYiJH(value) {
        if (value == 0) {
            UCLHJiHuanZYJHXX_ZhuanYiJH1.SetText(UCLHJiHuanZYJHXX_ZhuanYiJH1.GetText() == "" ? "0" : UCLHJiHuanZYJHXX_ZhuanYiJH1.GetText());
            UCLHJiHuanZYJHXX_ZhuanYiJH2.SetText(UCLHJiHuanZYJHXX_ZhuanYiJH2.GetText() == "" ? "0" : UCLHJiHuanZYJHXX_ZhuanYiJH2.GetText());
            UCLHJiHuanZYJHXX_ZhuanYiJH3.SetText(UCLHJiHuanZYJHXX_ZhuanYiJH3.GetText() == "" ? "0" : UCLHJiHuanZYJHXX_ZhuanYiJH3.GetText());
            UCLHJiHuanZYJHXX_ZhuanYiJH4.SetText(UCLHJiHuanZYJHXX_ZhuanYiJH4.GetText() == "" ? "0" : UCLHJiHuanZYJHXX_ZhuanYiJH4.GetText());
            UCLHJiHuanZYJHXX_ZhuanYiJH5.SetText(UCLHJiHuanZYJHXX_ZhuanYiJH5.GetText() == "" ? "0" : UCLHJiHuanZYJHXX_ZhuanYiJH5.GetText());

            UCLHJiHuanZYJHXX_ZhuanYiJH6.SetText(UCLHJiHuanZYJHXX_ZhuanYiJH6.GetText() == "" ? "0" : UCLHJiHuanZYJHXX_ZhuanYiJH6.GetText());
            UCLHJiHuanZYJHXX_ZhuanYiJH7.SetText(UCLHJiHuanZYJHXX_ZhuanYiJH7.GetText() == "" ? "0" : UCLHJiHuanZYJHXX_ZhuanYiJH7.GetText());
            UCLHJiHuanZYJHXX_ZhuanYiJH8.SetText(UCLHJiHuanZYJHXX_ZhuanYiJH8.GetText() == "" ? "0" : UCLHJiHuanZYJHXX_ZhuanYiJH8.GetText());
            UCLHJiHuanZYJHXX_ZhuanYiJH9.SetText(UCLHJiHuanZYJHXX_ZhuanYiJH9.GetText() == "" ? "0" : UCLHJiHuanZYJHXX_ZhuanYiJH9.GetText());
            UCLHJiHuanZYJHXX_ZhuanYiJH10.SetText(UCLHJiHuanZYJHXX_ZhuanYiJH10.GetText() == "" ? "0" : UCLHJiHuanZYJHXX_ZhuanYiJH10.GetText());

            UCLHJiHuanZYJHXX_ZhuanYiJH11.SetText(UCLHJiHuanZYJHXX_ZhuanYiJH11.GetText() == "" ? "0" : UCLHJiHuanZYJHXX_ZhuanYiJH11.GetText());
            UCLHJiHuanZYJHXX_ZhuanYiJH12.SetText(UCLHJiHuanZYJHXX_ZhuanYiJH12.GetText() == "" ? "0" : UCLHJiHuanZYJHXX_ZhuanYiJH12.GetText());
            UCLHJiHuanZYJHXX_ZhuanYiJH13.SetText(UCLHJiHuanZYJHXX_ZhuanYiJH13.GetText() == "" ? "0" : UCLHJiHuanZYJHXX_ZhuanYiJH13.GetText());
        }
        else {
            UCLHJiHuanZYJHXX_ZhuanYiJH1.SetText(parseInt(UCLHJiHuanZYJHXX_ZhuanYiJH1.GetText()) >= 0 ? UCLHJiHuanZYJHXX_ZhuanYiJH1.GetText() : parseInt(UCLHJiHuanZYJHXX_YuanJiHJ1.GetText()) > 0 ? "" : "0")
            UCLHJiHuanZYJHXX_ZhuanYiJH2.SetText(parseInt(UCLHJiHuanZYJHXX_ZhuanYiJH2.GetText()) >= 0 ? UCLHJiHuanZYJHXX_ZhuanYiJH2.GetText() : parseInt(UCLHJiHuanZYJHXX_YuanJiHJ2.GetText()) > 0 ? "" : "0")
            UCLHJiHuanZYJHXX_ZhuanYiJH3.SetText(parseInt(UCLHJiHuanZYJHXX_ZhuanYiJH3.GetText()) >= 0 ? UCLHJiHuanZYJHXX_ZhuanYiJH3.GetText() : parseInt(UCLHJiHuanZYJHXX_YuanJiHJ3.GetText()) > 0 ? "" : "0")
            UCLHJiHuanZYJHXX_ZhuanYiJH4.SetText(parseInt(UCLHJiHuanZYJHXX_ZhuanYiJH4.GetText()) >= 0 ? UCLHJiHuanZYJHXX_ZhuanYiJH4.GetText() : parseInt(UCLHJiHuanZYJHXX_YuanJiHJ4.GetText()) > 0 ? "" : "0")
            UCLHJiHuanZYJHXX_ZhuanYiJH5.SetText(parseInt(UCLHJiHuanZYJHXX_ZhuanYiJH5.GetText()) >= 0 ? UCLHJiHuanZYJHXX_ZhuanYiJH5.GetText() : parseInt(UCLHJiHuanZYJHXX_YuanJiHJ5.GetText()) > 0 ? "" : "0")

            UCLHJiHuanZYJHXX_ZhuanYiJH6.SetText(parseInt(UCLHJiHuanZYJHXX_ZhuanYiJH6.GetText()) >= 0 ? UCLHJiHuanZYJHXX_ZhuanYiJH6.GetText() : parseInt(UCLHJiHuanZYJHXX_YuanJiHJ6.GetText()) > 0 ? "" : "0")
            UCLHJiHuanZYJHXX_ZhuanYiJH7.SetText(parseInt(UCLHJiHuanZYJHXX_ZhuanYiJH7.GetText()) >= 0 ? UCLHJiHuanZYJHXX_ZhuanYiJH7.GetText() : parseInt(UCLHJiHuanZYJHXX_YuanJiHJ7.GetText()) > 0 ? "" : "0")
            UCLHJiHuanZYJHXX_ZhuanYiJH8.SetText(parseInt(UCLHJiHuanZYJHXX_ZhuanYiJH8.GetText()) >= 0 ? UCLHJiHuanZYJHXX_ZhuanYiJH8.GetText() : parseInt(UCLHJiHuanZYJHXX_YuanJiHJ8.GetText()) > 0 ? "" : "0")
            UCLHJiHuanZYJHXX_ZhuanYiJH9.SetText(parseInt(UCLHJiHuanZYJHXX_ZhuanYiJH9.GetText()) >= 0 ? UCLHJiHuanZYJHXX_ZhuanYiJH9.GetText() : parseInt(UCLHJiHuanZYJHXX_YuanJiHJ9.GetText()) > 0 ? "" : "0")
            UCLHJiHuanZYJHXX_ZhuanYiJH10.SetText(parseInt(UCLHJiHuanZYJHXX_ZhuanYiJH10.GetText()) >= 0 ? UCLHJiHuanZYJHXX_ZhuanYiJH10.GetText() : parseInt(UCLHJiHuanZYJHXX_YuanJiHJ10.GetText()) > 0 ? "" : "0")

            UCLHJiHuanZYJHXX_ZhuanYiJH11.SetText(parseInt(UCLHJiHuanZYJHXX_ZhuanYiJH11.GetText()) >= 0 ? UCLHJiHuanZYJHXX_ZhuanYiJH11.GetText() : parseInt(UCLHJiHuanZYJHXX_YuanJiHJ11.GetText()) > 0 ? "" : "0")
            UCLHJiHuanZYJHXX_ZhuanYiJH12.SetText(parseInt(UCLHJiHuanZYJHXX_ZhuanYiJH12.GetText()) >= 0 ? UCLHJiHuanZYJHXX_ZhuanYiJH12.GetText() : parseInt(UCLHJiHuanZYJHXX_YuanJiHJ12.GetText()) > 0 ? "" : "0")
        }
    }
    function GetTotal() {
        var YiXianJH1, YiXianJH2, YiXianJH3, YiXianJH4, YiXianJH5, YiXianJH6, YiXianJH7, YiXianJH8, YiXianJH9, YiXianJH10, YiXianJH11, YiXianJH12;
        var JiaXianJH1, JiaXianJH2, JiaXianJH3, JiaXianJH4, JiaXianJH5, JiaXianJH6, JiaXianJH7, JiaXianJH8, JiaXianJH9, JiaXianJH10, JiaXianJH11, JiaXianJH12;
        var ZhuanYiJH1, ZhuanYiJH2, ZhuanYiJH3, ZhuanYiJH4, ZhuanYiJH5, ZhuanYiJH6, ZhuanYiJH7, ZhuanYiJH8, ZhuanYiJH9, ZhuanYiJH10, ZhuanYiJH11, ZhuanYiJH12;

        YiXianJH1 = parseInt(UCLHJiHuanZYJHXX_XianJiHY1.GetText());
        YiXianJH2 = parseInt(UCLHJiHuanZYJHXX_XianJiHY2.GetText());
        YiXianJH3 = parseInt(UCLHJiHuanZYJHXX_XianJiHY3.GetText());
        YiXianJH4 = parseInt(UCLHJiHuanZYJHXX_XianJiHY4.GetText());
        YiXianJH5 = parseInt(UCLHJiHuanZYJHXX_XianJiHY5.GetText());

        YiXianJH6 = parseInt(UCLHJiHuanZYJHXX_XianJiHY6.GetText());
        YiXianJH7 = parseInt(UCLHJiHuanZYJHXX_XianJiHY7.GetText());
        YiXianJH8 = parseInt(UCLHJiHuanZYJHXX_XianJiHY8.GetText());
        YiXianJH9 = parseInt(UCLHJiHuanZYJHXX_XianJiHY9.GetText());
        YiXianJH10 = parseInt(UCLHJiHuanZYJHXX_XianJiHY10.GetText());

        YiXianJH11 = parseInt(UCLHJiHuanZYJHXX_XianJiHY11.GetText());
        YiXianJH12 = parseInt(UCLHJiHuanZYJHXX_XianJiHY12.GetText());


        JiaXianJH1 = parseInt(UCLHJiHuanZYJHXX_XianJiHJ1.GetText());
        JiaXianJH2 = parseInt(UCLHJiHuanZYJHXX_XianJiHJ2.GetText());
        JiaXianJH3 = parseInt(UCLHJiHuanZYJHXX_XianJiHJ3.GetText());
        JiaXianJH4 = parseInt(UCLHJiHuanZYJHXX_XianJiHJ4.GetText());
        JiaXianJH5 = parseInt(UCLHJiHuanZYJHXX_XianJiHJ5.GetText());

        JiaXianJH6 = parseInt(UCLHJiHuanZYJHXX_XianJiHJ6.GetText());
        JiaXianJH7 = parseInt(UCLHJiHuanZYJHXX_XianJiHJ7.GetText());
        JiaXianJH8 = parseInt(UCLHJiHuanZYJHXX_XianJiHJ8.GetText());
        JiaXianJH9 = parseInt(UCLHJiHuanZYJHXX_XianJiHJ9.GetText());
        JiaXianJH10 = parseInt(UCLHJiHuanZYJHXX_XianJiHJ10.GetText());

        JiaXianJH11 = parseInt(UCLHJiHuanZYJHXX_XianJiHJ11.GetText());
        JiaXianJH12 = parseInt(UCLHJiHuanZYJHXX_XianJiHJ12.GetText());


        ZhuanYiJH1 = parseInt(UCLHJiHuanZYJHXX_ZhuanYiJH1.GetText() == "" ? 0 : UCLHJiHuanZYJHXX_ZhuanYiJH1.GetText());
        ZhuanYiJH2 = parseInt(UCLHJiHuanZYJHXX_ZhuanYiJH2.GetText() == "" ? 0 : UCLHJiHuanZYJHXX_ZhuanYiJH2.GetText());
        ZhuanYiJH3 = parseInt(UCLHJiHuanZYJHXX_ZhuanYiJH3.GetText() == "" ? 0 : UCLHJiHuanZYJHXX_ZhuanYiJH3.GetText());
        ZhuanYiJH4 = parseInt(UCLHJiHuanZYJHXX_ZhuanYiJH4.GetText() == "" ? 0 : UCLHJiHuanZYJHXX_ZhuanYiJH4.GetText());
        ZhuanYiJH5 = parseInt(UCLHJiHuanZYJHXX_ZhuanYiJH5.GetText() == "" ? 0 : UCLHJiHuanZYJHXX_ZhuanYiJH5.GetText());

        ZhuanYiJH6 = parseInt(UCLHJiHuanZYJHXX_ZhuanYiJH6.GetText() == "" ? 0 : UCLHJiHuanZYJHXX_ZhuanYiJH6.GetText());
        ZhuanYiJH7 = parseInt(UCLHJiHuanZYJHXX_ZhuanYiJH7.GetText() == "" ? 0 : UCLHJiHuanZYJHXX_ZhuanYiJH7.GetText());
        ZhuanYiJH8 = parseInt(UCLHJiHuanZYJHXX_ZhuanYiJH8.GetText() == "" ? 0 : UCLHJiHuanZYJHXX_ZhuanYiJH8.GetText());
        ZhuanYiJH9 = parseInt(UCLHJiHuanZYJHXX_ZhuanYiJH9.GetText() == "" ? 0 : UCLHJiHuanZYJHXX_ZhuanYiJH9.GetText());
        ZhuanYiJH10 = parseInt(UCLHJiHuanZYJHXX_ZhuanYiJH10.GetText() == "" ? 0 : UCLHJiHuanZYJHXX_ZhuanYiJH10.GetText());

        ZhuanYiJH11 = parseInt(UCLHJiHuanZYJHXX_ZhuanYiJH11.GetText() == "" ? 0 : UCLHJiHuanZYJHXX_ZhuanYiJH11.GetText());
        ZhuanYiJH12 = parseInt(UCLHJiHuanZYJHXX_ZhuanYiJH12.GetText() == "" ? 0 : UCLHJiHuanZYJHXX_ZhuanYiJH12.GetText());

        var TotalJ, TotalY, TotalZ;
        TotalJ = JiaXianJH1 + JiaXianJH2 + JiaXianJH3 + JiaXianJH4 + JiaXianJH5 + JiaXianJH6 + JiaXianJH7 + JiaXianJH8 + JiaXianJH9 + JiaXianJH10 + JiaXianJH11 + JiaXianJH12;
        TotalY = YiXianJH1 + YiXianJH2 + YiXianJH3 + YiXianJH4 + YiXianJH5 + YiXianJH6 + YiXianJH7 + YiXianJH8 + YiXianJH9 + YiXianJH10 + YiXianJH11 + YiXianJH12;
        TotalZ = ZhuanYiJH1 + ZhuanYiJH2 + ZhuanYiJH3 + ZhuanYiJH4 + ZhuanYiJH5 + ZhuanYiJH6 + ZhuanYiJH7 + ZhuanYiJH8 + ZhuanYiJH9 + ZhuanYiJH10 + ZhuanYiJH11 + ZhuanYiJH12;

        if (isNaN(TotalJ) || isNaN(TotalY) || isNaN(TotalZ)) {
            return;
        }
        UCLHJiHuanZYJHXX_XianJiHJ13.SetText(TotalJ);

        UCLHJiHuanZYJHXX_XianJiHY13.SetText(TotalY);

        UCLHJiHuanZYJHXX_ZhuanYiJH13.SetText(TotalZ);

    }
    function SetFocus(index)
    {
        var controls = new Array();
        controls[0] = UCLHJiHuanZYJHXX_ZhuanYiJH1;
        controls[1] = UCLHJiHuanZYJHXX_ZhuanYiJH2;
        controls[2] = UCLHJiHuanZYJHXX_ZhuanYiJH3;
        controls[3] = UCLHJiHuanZYJHXX_ZhuanYiJH4;
        controls[4] = UCLHJiHuanZYJHXX_ZhuanYiJH5;

        controls[5] = UCLHJiHuanZYJHXX_ZhuanYiJH6;
        controls[6] = UCLHJiHuanZYJHXX_ZhuanYiJH7;
        controls[7] = UCLHJiHuanZYJHXX_ZhuanYiJH8;
        controls[8] = UCLHJiHuanZYJHXX_ZhuanYiJH9;
        controls[9] = UCLHJiHuanZYJHXX_ZhuanYiJH10;

        controls[10] = UCLHJiHuanZYJHXX_ZhuanYiJH11;
        controls[11] = UCLHJiHuanZYJHXX_ZhuanYiJH12;
        var key = event.keyCode;
        
        if (key == 13) {
            if (index > controls.length - 1) {

            }
            else {
                controls[index].Focus();
            }
        }
    }
</script>
<dx:ASPxHiddenField ID="UCLHJiHuanZYJHXX_HIDLIST" ClientInstanceName="UCLHJiHuanZYJHXX_HIDLIST" runat="server"></dx:ASPxHiddenField>
<fieldset style="border: 1px solid  cornflowerblue;">
    <legend><b>转移量信息</b></legend>
    <table style="width: 100%">
        <tr align="center">
            <td></td>
            <td>1月</td>
            <td>2月</td>
            <td>3月</td>
            <td>4月</td>

            <td>5月</td>
            <td>6月</td>
            <td>7月</td>
            <td>8月</td>
            <td>9月</td>

            <td>10月</td>
            <td>11月</td>
            <td>12月</td>
            <td>全年</td>

        </tr>
        <tr>
            <td align="right" style="width: 110px">转移计划：</td>
            <td>
                <dx:ASPxTextBox ID="txtZYJH1" ClientInstanceName="UCLHJiHuanZYJHXX_ZhuanYiJH1" runat="server" Width="100%">
                    <ClientSideEvents KeyUp="function(s,e){ChangeJH(s,1);}" />
                </dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtZYJH2" ClientInstanceName="UCLHJiHuanZYJHXX_ZhuanYiJH2" runat="server" Width="100%">
                    <ClientSideEvents KeyUp="function(s,e){ChangeJH(s,2);}" />
                </dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtZYJH3" ClientInstanceName="UCLHJiHuanZYJHXX_ZhuanYiJH3" runat="server" Width="100%">

                    <ClientSideEvents KeyUp="function(s,e){ChangeJH(s,3);}" />
                </dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtZYJH4" ClientInstanceName="UCLHJiHuanZYJHXX_ZhuanYiJH4" runat="server" Width="100%">
                    <ClientSideEvents KeyUp="function(s,e){ChangeJH(s,4);}" />
                </dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtZYJH5" ClientInstanceName="UCLHJiHuanZYJHXX_ZhuanYiJH5" runat="server" Width="100%">
                    <ClientSideEvents KeyUp="function(s,e){ChangeJH(s,5);}" />
                </dx:ASPxTextBox>
            </td>

            <td>
                <dx:ASPxTextBox ID="txtZYJH6" ClientInstanceName="UCLHJiHuanZYJHXX_ZhuanYiJH6" runat="server" Width="100%">
                    <ClientSideEvents KeyUp="function(s,e){ChangeJH(s,6);}" />
                </dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtZYJH7" ClientInstanceName="UCLHJiHuanZYJHXX_ZhuanYiJH7" runat="server" Width="100%">
                    <ClientSideEvents KeyUp="function(s,e){ChangeJH(s,7);}" />
                </dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtZYJH8" ClientInstanceName="UCLHJiHuanZYJHXX_ZhuanYiJH8" runat="server" Width="100%">
                    <ClientSideEvents KeyUp="function(s,e){ChangeJH(s,8);}" />
                </dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtZYJH9" ClientInstanceName="UCLHJiHuanZYJHXX_ZhuanYiJH9" runat="server" Width="100%">
                    <ClientSideEvents KeyUp="function(s,e){ChangeJH(s,9);}" />
                </dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtZYJH10" ClientInstanceName="UCLHJiHuanZYJHXX_ZhuanYiJH10" runat="server" Width="100%">
                    <ClientSideEvents KeyUp="function(s,e){ChangeJH(s,10);}" />
                </dx:ASPxTextBox>
            </td>

            <td>
                <dx:ASPxTextBox ID="txtZYJH11" ClientInstanceName="UCLHJiHuanZYJHXX_ZhuanYiJH11" runat="server" Width="100%">
                    <ClientSideEvents KeyUp="function(s,e){ChangeJH(s,11);}" />
                </dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtZYJH12" ClientInstanceName="UCLHJiHuanZYJHXX_ZhuanYiJH12" runat="server" Width="100%">
                    <ClientSideEvents KeyUp="function(s,e){ChangeJH(s,12);}" />
                </dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtZYJH13" ClientInstanceName="UCLHJiHuanZYJHXX_ZhuanYiJH13" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>
            </td>

        </tr>
        <tr>
            <td align="right">（甲）原计划：</td>
            <td>
                <dx:ASPxTextBox ID="txtJiaYuanJH1" ClientInstanceName="UCLHJiHuanZYJHXX_YuanJiHJ1" ReadOnly="true"  runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtJiaYuanJH2" ClientInstanceName="UCLHJiHuanZYJHXX_YuanJiHJ2" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtJiaYuanJH3" ClientInstanceName="UCLHJiHuanZYJHXX_YuanJiHJ3" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtJiaYuanJH4" ClientInstanceName="UCLHJiHuanZYJHXX_YuanJiHJ4" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtJiaYuanJH5" ClientInstanceName="UCLHJiHuanZYJHXX_YuanJiHJ5" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>

            <td>
                <dx:ASPxTextBox ID="txtJiaYuanJH6" ClientInstanceName="UCLHJiHuanZYJHXX_YuanJiHJ6" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtJiaYuanJH7" ClientInstanceName="UCLHJiHuanZYJHXX_YuanJiHJ7" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtJiaYuanJH8" ClientInstanceName="UCLHJiHuanZYJHXX_YuanJiHJ8" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtJiaYuanJH9" ClientInstanceName="UCLHJiHuanZYJHXX_YuanJiHJ9" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtJiaYuanJH10" ClientInstanceName="UCLHJiHuanZYJHXX_YuanJiHJ10" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>

            <td>
                <dx:ASPxTextBox ID="txtJiaYuanJH11" ClientInstanceName="UCLHJiHuanZYJHXX_YuanJiHJ11" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtJiaYuanJH12" ClientInstanceName="UCLHJiHuanZYJHXX_YuanJiHJ12" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtJiaYuanJH13" ClientInstanceName="UCLHJiHuanZYJHXX_YuanJiHJ13" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>

        </tr>
        <tr>
            <td align="right">（甲）现计划：</td>
            <td>
                <dx:ASPxTextBox ID="txtJiaXianJH1" ClientInstanceName="UCLHJiHuanZYJHXX_XianJiHJ1" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtJiaXianJH2" ClientInstanceName="UCLHJiHuanZYJHXX_XianJiHJ2" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtJiaXianJH3" ClientInstanceName="UCLHJiHuanZYJHXX_XianJiHJ3" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtJiaXianJH4" ClientInstanceName="UCLHJiHuanZYJHXX_XianJiHJ4" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtJiaXianJH5" ClientInstanceName="UCLHJiHuanZYJHXX_XianJiHJ5" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>

            <td>
                <dx:ASPxTextBox ID="txtJiaXianJH6" ClientInstanceName="UCLHJiHuanZYJHXX_XianJiHJ6" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtJiaXianJH7" ClientInstanceName="UCLHJiHuanZYJHXX_XianJiHJ7" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtJiaXianJH8" ClientInstanceName="UCLHJiHuanZYJHXX_XianJiHJ8" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtJiaXianJH9" ClientInstanceName="UCLHJiHuanZYJHXX_XianJiHJ9" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtJiaXianJH10" ClientInstanceName="UCLHJiHuanZYJHXX_XianJiHJ10" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>

            <td>
                <dx:ASPxTextBox ID="txtJiaXianJH11" ClientInstanceName="UCLHJiHuanZYJHXX_XianJiHJ11" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtJiaXianJH12" ClientInstanceName="UCLHJiHuanZYJHXX_XianJiHJ12" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtJiaXianJH13" ClientInstanceName="UCLHJiHuanZYJHXX_XianJiHJ13" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>

        </tr>
        <tr>
            <td align="right">（乙）原计划：</td>
            <td>
                <dx:ASPxTextBox ID="txtYiYuanJH1" ClientInstanceName="UCLHJiHuanZYJHXX_YuanJiHY1" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtYiYuanJH2" ClientInstanceName="UCLHJiHuanZYJHXX_YuanJiHY2" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtYiYuanJH3" ClientInstanceName="UCLHJiHuanZYJHXX_YuanJiHY3" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtYiYuanJH4" ClientInstanceName="UCLHJiHuanZYJHXX_YuanJiHY4" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtYiYuanJH5" ClientInstanceName="UCLHJiHuanZYJHXX_YuanJiHY5" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>

            <td>
                <dx:ASPxTextBox ID="txtYiYuanJH6" ClientInstanceName="UCLHJiHuanZYJHXX_YuanJiHY6" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtYiYuanJH7" ClientInstanceName="UCLHJiHuanZYJHXX_YuanJiHY7" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtYiYuanJH8" ClientInstanceName="UCLHJiHuanZYJHXX_YuanJiHY8" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtYiYuanJH9" ClientInstanceName="UCLHJiHuanZYJHXX_YuanJiHY9" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtYiYuanJH10" ClientInstanceName="UCLHJiHuanZYJHXX_YuanJiHY10" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>

            <td>
                <dx:ASPxTextBox ID="txtYiYuanJH11" ClientInstanceName="UCLHJiHuanZYJHXX_YuanJiHY11" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtYiYuanJH12" ClientInstanceName="UCLHJiHuanZYJHXX_YuanJiHY12" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtYiYuanJH13" ClientInstanceName="UCLHJiHuanZYJHXX_YuanJiHY13" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>

        </tr>
        <tr>
            <td align="right">（乙）现计划：</td>
            <td>
                <dx:ASPxTextBox ID="txtYiXianJH1" ClientInstanceName="UCLHJiHuanZYJHXX_XianJiHY1" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtYiXianJH2" ClientInstanceName="UCLHJiHuanZYJHXX_XianJiHY2" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtYiXianJH3" ClientInstanceName="UCLHJiHuanZYJHXX_XianJiHY3" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtYiXianJH4" ClientInstanceName="UCLHJiHuanZYJHXX_XianJiHY4" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtYiXianJH5" ClientInstanceName="UCLHJiHuanZYJHXX_XianJiHY5" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>

            <td>
                <dx:ASPxTextBox ID="txtYiXianJH6" ClientInstanceName="UCLHJiHuanZYJHXX_XianJiHY6" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtYiXianJH7" ClientInstanceName="UCLHJiHuanZYJHXX_XianJiHY7" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtYiXianJH8" ClientInstanceName="UCLHJiHuanZYJHXX_XianJiHY8" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtYiXianJH9" ClientInstanceName="UCLHJiHuanZYJHXX_XianJiHY9" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtYiXianJH10" ClientInstanceName="UCLHJiHuanZYJHXX_XianJiHY10" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>

            <td>
                <dx:ASPxTextBox ID="txtYiXianJH11" ClientInstanceName="UCLHJiHuanZYJHXX_XianJiHY11" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtYiXianJH12" ClientInstanceName="UCLHJiHuanZYJHXX_XianJiHY12" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxTextBox ID="txtYiXianJH13" ClientInstanceName="UCLHJiHuanZYJHXX_XianJiHY13" ReadOnly="true" runat="server" Text="0" Width="100%"></dx:ASPxTextBox>
            </td>

        </tr>
    </table>
</fieldset>
<br />
